<div class="articles form">
    <?php echo $this->Form->create('Article'); ?>
    <fieldset>
        <legend><?php echo __('Edit Article'); ?></legend>
        <?php
        // pr($this->request->data);
        echo $this->Form->input('id');
        echo $this->Form->input('title', array('type' => 'text'));
        echo $this->Form->input('summary');
        echo $this->Html->div('input text current-file', 
               // __('<span class="lb-file-name">Current file: </span>') . $this->Html->link($this->request->data['Media'][0]['filename'], BASE_URL . $this->request->data['Media'][0]['dir'] . '/' . $this->request->data['Media'][0]['filename'], array('class' => 'pdf-icon'))
                 __('<span class="lb-file-name">Current file: </span>') . $this->Html->link($this->request->data['Media'][0]['filename'],array('controller' => 'media', 'action' => 'viewFile', $this->request->data['Media'][0]['id']), array('class' => 'pdf-icon'))
                . $this->Html->link(__('Change file'), array('controller' => 'media', 'action' => 'changeFile', $this->request->data['Media'][0]['id'], 'admin' => true), array('class' => 'link-change-file btn'))
        );
        ?>
    </fieldset>
        <?php echo $this->Form->end(__('Update')); ?>
</div>
